package com.yaser.dao;

import com.yaser.dao.generic.GenericDao;
import com.yaser.model.User;
import com.yaser.util.exceptions.FreeBoxDaoException;

/**
 * 
 * Responsible for {@link User} database interactions
 * 
 * @author yasar.yasa
 * @param <E>
 *
 */

@SuppressWarnings("hiding")
public interface UserDao<User> extends GenericDao<User>{

	/**
	 * 
	 * Finds user by name and password
	 * 
	 * @param name
	 * @param password
	 * @return
	 * @throws FreeBoxDaoException
	 */
	public User findUser(String name,String password) throws FreeBoxDaoException;
	
}
